<?php
namespace zake\foundation\reactor\trigger\connect;

use zake\foundation\able\reactor\ConnectAble;
use zake\foundation\able\traits\ConnectTrait;
use zake\foundation\stream\BufferRwStream;


/**
 * Class Connect
 * @package zaka\foundation\stream
 */
class Connect  extends BufferRwStream implements ConnectAble
{
    use ConnectTrait;
    /**
     * 构造器
     *
     * Connect constructor.
     * @param $resource
     */
    public function __construct($resource)
    {
        parent::__construct($resource);
        $this->connectMicroTime     = currentMicroTime();
        $this->connectSecTime       = (int)$this->connectMicroTime;
    }
}